<?php

/**
 * membre actions.
 *
 * @package    fkshop
 * @subpackage membre
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class membreActions extends sfActions
{
 /**
  * Executes index action
  *
  * @param sfRequest $request A request object
  */
  public function executeIndex(sfWebRequest $request)
  {
    $this->forward('default', 'module');
  }
  
	public function executeLogin(sfWebRequest $request)
	{
	  $this->form = new LoginForm();
	}
	
	public function executeDoLogin(sfWebRequest $request)
	{
		$this->forward404Unless($request->isMethod('post'));
		
		$this->form = new LoginForm();
		
		$this->form->bind($request->getParameter('login'));
		
	    if ($this->form->isValid())
	    {
			// On set la session de l'utilisateur.
		}
		else {
			$this->setTemplate("login");
		}
		
	}
}
